package com.zx._06_JVM;

import cn.hutool.system.SystemUtil;
import lombok.extern.slf4j.Slf4j;

@Slf4j
public class JvmInfoTest {

    public static void main(String[] args) {
        log.info("1.{}", SystemUtil.getJvmInfo());

        log.info("2.{}", SystemUtil.getJvmSpecInfo());

        log.info("3.{}", SystemUtil.getJavaInfo());

        log.info("4.{}", SystemUtil.getJavaRuntimeInfo());

        log.info("5.{}", SystemUtil.getJavaSpecInfo());

        log.info("6.系统信息\n{}", SystemUtil.getOsInfo());

        log.info("7.用户信息\n{}", SystemUtil.getUserInfo());

        log.info("8.当前主机网络地址信息\n{}", SystemUtil.getHostInfo());

        log.info("9.运行时内存信息\n{}", SystemUtil.getRuntimeInfo());

    }
}
